@bg-color:#b7d4a8;
@snake-color:#000;
body {
    font: bold 20px 'Courier';
}
/* 清楚默认样式 */
*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
/* 清除默认样式 end */

/* 设置主窗口样式 */
#main {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-around;
    width: 360px;
    height: 420px;
    background-color: @bg-color;
    border-radius: 40px;
    margin: 100px auto;
    border: 10px solid black;
}

#stage {
    position: relative;
    width: 304px;
    height: 304px;
    border: 2px solid #262626;
}

#score-panel {
    width: 300px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

#snake {
    &>div {
        position: absolute;
        width: 10px;
        height: 10px;
        background-color: @snake-color;
        // background-image: url('../assets/images/head.jpg');
        background-size: 100% 100%;
        background-position: center;
        border: 1px solid @bg-color;
    }
}

#food {
    position: absolute;
    left: 40px;
    top: 50px;
    width: 10px;
    height: 10px;
    border-radius: 0;
    // background-image: url(../assets/images/visit.png);
    background-size: 100%;
    border-radius: 100%;
    background-color: rgb(232, 13, 68);
    border: 1px solid @bg-color;
}